# import numpy as np
# from matplotlib import pyplot as plt
# plt.figure(figsize=(9,6))
# n = 8
# X = [0,1,2]

# Y1 = [143,38326,97]

# plt.bar(X,Y1,width = 0.35,facecolor = 'green',edgecolor = 'white')


# for x,y in zip(X,Y1):
#     plt.text(x+0.18, y+0.05, '%.0f' % y, ha='center', va= 'bottom')

# plt.ylim(0,+40000)
# plt.xlabel('Born-year Information')
# plt.ylabel('number')
# plt.title('Born Year')
# plt.show()


import matplotlib.pyplot as plt
plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt

# Example data
people = ('<1985', '1985~2015', '>2015')
y_pos = np.arange(len(people))
performance = [144,38325,97]
error = np.random.rand(len(people))

plt.barh(y_pos, performance, xerr=error, align='center', alpha=0.4)
plt.yticks(y_pos, people)
plt.xlabel('number of population')
plt.title('Age-population Information')
#plt.savefig("barh.eps",format="eps")
plt.show()